Tour the Script Window

The Scripting window has a few different areas of interest described below.

 

Ribbon

New
Use this to select a new VB File (.vb), C# File (.cs), VB Project (.vbproj), or C# Project (.csproj).  Projects can consist of multiple files and can reference specific .dlls.

Open
Use this button to open a VB or C# File, VB or C# Project, or an old Aurora script file (.xsp, prior to v14.0).  If an old .xsp file is opened, you will be asked if you want to convert the file to the new .vb format.   The older .xsp files cannot be modified in Aurora v14.0 or later. They must be converted to a .vb file.  Converting an .xsp file to the .vb format will automatically create a new file that contains the converted code of the .xsp file, but the original .xsp file will still exist and will not be modified in any way.

Save/Save As
This button saves the active file/project.  Note that the Save As button only works for VB/C# files, and will be disabled for VB/C# Projects.

Start - F5
This button executes the script.

Pause
This button pauses the script.

Step Into - F11
This button executes the script one step at a time including the steps in sub-scripts and helps in debugging.

Step Over - F10
This button executes the script one step at a time without going into sub-scripts and helps in debugging.

Stop
This button stops the scripting process.

 

Dropdown Header

There are two dropdown menus above the main editing window that show all of the classes and functions in the open file.

Selecting a class or function from the dropdown will place the cursor on that class or function in the script.

 

Explorer Pod

 

Code Explorer

The Code Explorer window is a tree view that contains all of the classes, variables, and functions in open file.

 

Project Explorer

The Project Explorer window holds information about an open VB/C# Project and shows what references the project has and what files it includes. (It will be empty if a VB/C# file is open instead.)  For VB Projects, ignore the files under “My Project” and “App.config”; you should not modify these files. For C# Projects, ignore the files under “Properties” and “App.config”; you should not modify these files. The right-click menu for Project Explorer can be used to add or remove references, add new blank or existing files to the project, or remove files from the project.

 

Information Pod

Breakpoints - Shows all the breakpoints in the file or project. The right-click menu in this region will give options to delete or disable a breakpoint, or go to the source code where the breakpoint exists. 

Error List - Shows you warning and errors after compiling a project.  

Output - Shows output from any Debug.WriteLine() statements in your code.To use Debug.WriteLine(), add "Imports System.Diagnostics" to the top of the script.  

Call Stack - Shows the current call stack when debugging the script.

Locals - Shows the local variables in the active function when debugging the script. The right-click menu can add a local variable to the Watch window and change the value of the local variable using Set Value.

Watch - Shows variables that have been added using Add to Watch from the Locals window, which is used to see the value of a variable even if it is not in the same function that is currently being debugged. This variable can also be modified using the right-click menu.  

Find Results - Select a variable/object in a script, then right-click and select the Find References option to show the results here.This shows other places in the file or project where the selected text is used. You can then use the right-click menu from this area and select "Go to Location" to access a result in the script.

Scripting

Tour the Script Window


For further assistance, please contact Aurora Support.

Copyright© 1997-2024 Energy Exemplar LLC. All rights reserved.